﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x02000090 RID: 144
	public class TCommonStoredProcedureSqlStatement : TStoredProcedureSqlStatement
	{
		// Token: 0x17000069 RID: 105
		// (get) Token: 0x060003CA RID: 970 RVA: 0x002FA43C File Offset: 0x002F863C
		// (set) Token: 0x060003C9 RID: 969 RVA: 0x002FA433 File Offset: 0x002F8633
		public virtual bool Wrapped
		{
			get
			{
				return this.wrapped;
			}
			set
			{
				this.wrapped = value;
			}
		}

		// Token: 0x060003CB RID: 971 RVA: 0x002FA444 File Offset: 0x002F8644
		public TCommonStoredProcedureSqlStatement(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sst_block_with_exception;
			this.wrapped = false;
		}

		// Token: 0x1700006A RID: 106
		// (get) Token: 0x060003CD RID: 973 RVA: 0x002FA465 File Offset: 0x002F8665
		// (set) Token: 0x060003CC RID: 972 RVA: 0x002FA45C File Offset: 0x002F865C
		public virtual TExceptionClause ExceptionClause
		{
			get
			{
				return this.exceptionClause;
			}
			set
			{
				this.exceptionClause = value;
			}
		}

		// Token: 0x060003CE RID: 974 RVA: 0x002FA46D File Offset: 0x002F866D
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			base.doParseStatement(psql);
			if (this.Wrapped)
			{
				return -1;
			}
			return 0;
		}

		// Token: 0x040010BE RID: 4286
		private bool wrapped;

		// Token: 0x040010BF RID: 4287
		private TExceptionClause exceptionClause;
	}
}
